import 'package:flutter_model_package/Member.dart';
import 'package:flutter_model_package/parse_base.dart';
import 'package:flutter_model_package/student.dart';
import 'package:parse_server_sdk/parse_server_sdk.dart';

class StudentSignIn extends MSParseBase {
  StudentSignIn() : super("StudentSignIn");

  StudentSignIn.cloe() : this();

  @override
  StudentSignIn clone(Map<String, dynamic> map) =>
      StudentSignIn.cloe()..fromJson(map);

  forStudent(Student student, DateTime less, DateTime greater) {
    return QueryBuilder(this)
      ..whereEqualTo("student", student)
      ..whereLessThan("date", less)
      ..whereGreaterThan("date", greater);
  }

  QueryBuilder<StudentSignIn> forMemberStudentStatus(DateTime dateTime,Member member) {
    return QueryBuilder(this)
      ..whereEqualTo("student", member['student'])
      ..includeObject(['student'])
      ..whereGreaterThan("date", dateTime);
  }

  QueryBuilder<StudentSignIn> forEmpStudent(
      List<QueryBuilder<StudentSignIn>> listQuery) {
    // return QueryBuilder(StudentSignIn())..whereMatchesQuery("column", []);
  }
}
